package com.chen.dao;

import com.chen.entity.TestEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Title:
 * @Description: to do
 * @Author: chenjiwei
 * @Date: 2020-10-28 23:06
 * @Version: 1.0.0
 */
@Repository
public interface TestEntityDao extends JpaRepository<TestEntity, Integer>, JpaSpecificationExecutor<TestEntity> {
    @Query("select s from TestEntity s")
    List<TestEntity> findTest();

}
